﻿(function () {
    app.factory('postService', postService);

    postService.$inject = ['$resource'];

    function postService($resource) {
        return $resource('/api/post/:id', { id: '@id' }, {
            update: {
                method: 'PUT'
            }
        });
    }
})();